<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<style>
    .pageFormContent p {
        width: 90%;
    }
</style>

<div class="pageContent">
    <form method="post" action="fix_edit" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone)">

        <input type="hidden" name="id" readonly="readonly" value="${list.id}" />
        <div class="pageFormContent nowrap" layoutH="57">
            <p>
               <label>社区：</label>
               <span>${workNo}</span>
            </p>

            <p>
               <label>小区：</label>
               <span>${list.blockName}</span>
            </p>

            <p>
               <label>区域类型：</label>
               <span>${list.areeType}</span>
            </p>

            <p>
               <label>联系方式：</label>
               <span>${list.phone}</span>
            </p>

            <p>
               <label>详细地址：</label>
               <span>${list.addr}</span>
            </p>

            <p>
               <label>提交时间：</label>
               <span><fmt:formatDate value="${list.createTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></span>
            </p>

            <p>
               <label>报修项目：</label>
               <span>${list.content}</span>
            </p>
            <p>
               <label>
               <c:forEach var="item" items="${list.imgs}">
                  <img src="${item}" style="width: 50px">
               </c:forEach>
               </label>
            </p>
            <p style="margin-top: 20px;">
                <label>处理人：</label>
                <c:if test="${list.worker==null}">
                    <input type="text" name="worker"  class="required" />
                </c:if>
                <c:if test="${list.worker!=null}">
                    <input type="text" name="worker"  class="required" value="${list.worker}" />
                </c:if>
            </p>
            <p>
                <label>处理人联系方式：</label>
                <c:if test="${list.worker==null}">
                    <input type="text" name="workerTel" class="required phone" />
                </c:if>
                <c:if test="${list.worker!=null}">
                    <input type="text" name="workerTel" class="required phone" value="${list.workerTel}" />
                </c:if>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent" style="text-align: center;">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>